import request from '@/utils/request'
import { config } from '@/utils/requestconfig'

export function getCustomArchivesList(data) {
  return request({
    baseURL: config.reimburseurl,
    url: 'SysCustomArchives/GetList',
    method: 'post',
    data: data
  })
}
// 新增
export function addCustomArchives(data) {
  return request({
    baseURL: config.reimburseurl,
    url: 'SysCustomArchives/Add',
    method: 'post',
    data: data
  })
}
// 修改
export function editCustomArchives(data) {
  return request({
    baseURL: config.reimburseurl,
    url: 'SysCustomArchives/Edit',
    method: 'post',
    data: data
  })
}
// 删除
export function delCustomArchives(params) {
  return request({
    baseURL: config.reimburseurl,
    url: 'SysCustomArchives/Del',
    method: 'post',
    params: { Id: params }
  })
}
// 通过id获取
export function getById(params) {
  return request({
    baseURL: config.reimburseurl,
    url: 'SysCustomArchives/GetById',
    method: 'post',
    params: { Id: params }
  })
}
